/**
 * Copyright 2016-2018 mobaas.com
 */
package com.mobaas.devops.dao.mybatis;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.mobaas.devops.dao.ErrorLogDao;
import com.mobaas.devops.model.ErrorLog;

import java.util.Date;
import java.util.List;

/**
 * 
 * @author billy zhang
 * 
 */
@Mapper
public interface ErrorLogMapper extends ErrorLogDao {
	
	@Override
    int selectErrorLogCount(
        @Param(value = "beginTime") Date beginTime,
        @Param(value = "endTime") Date endTime

    );

	@Override
    List<ErrorLog> selectErrorLogList(
            @Param(value = "beginTime") Date beginTime,
            @Param(value = "endTime") Date endTime,
            @Param(value = "offset") int offset,
            @Param(value = "limit") int limit
    );

	@Override
    ErrorLog selectErrorLogById( @Param(value = "id")int id);

}
